#!/bin/bash





name=54.223.110.70/php-dev/php-wiki:1.0.2
docker build --rm  -t $name  .

docker rm -f mindoc-01 
docker run -p 8101:8181 \
--name mindoc-01 \
-e MYSQL_PORT_3306_TCP_ADDR=192.168.31.21 \
-e MYSQL_PORT_3306_TCP_PORT=3306 \
-e MYSQL_INSTANCE_NAME=mindoc \
-e MYSQL_USERNAME=root \
-e MYSQL_PASSWORD=root \
-e httpport=8181 \
-v E:/develop/docker/php-docker-dist/mindoc/uploads:/go/src/github.com/lifei6671/mindoc/uploads \
-d $name

